﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Extentions;

namespace TrainingReminderSystem.Model
{
    /// <summary>
    /// 扫码记录
    /// </summary>
    [ExLanguageKey("SysQrCode")]
    public partial class SysQrCodeExList
    {
        /// <summary>
        /// 
        /// </summary>
        [ExLanguageKey("ID")]
        [Key]
        public int ID { get; set; }

        /// <summary>
        /// 分享记录ID;EventKey里取出来设置保存好
        /// </summary>
        [ExLanguageKey("SysShareRecordID")]
        public int SysShareRecordID { get; set; }

        /// <summary>
        /// OpenID
        /// </summary>
        [ExLanguageKey("OpenID")]
        public string OpenID { get; set; }

        /// <summary>
        /// EventKey;可能是"qrscene_"开头
        /// </summary>
        [ExLanguageKey("EventKey")]
        public string EventKey { get; set; }

        /// <summary>
        /// 是否达到条件;默认false 注册条件有2种,1.关注公众号 2.绑定了车辆并审核成功
        /// </summary>
        [ExLanguageKey("IsComplete")]
        public bool IsComplete { get; set; }

        /// <summary>
        /// 达到条件时间
        /// </summary>
        [ExLanguageKey("CompleteDate")]
        public DateTime? CompleteDate { get; set; }

        /// <summary>
        /// 成功之后存储的值
        /// </summary>
        [ExLanguageKey("SuccessObj")]
        public string SuccessObj { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [ExLanguageKey("CreateDate")]
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [ExLanguageKey("Remark")]
        public string Remark { get; set; }

        /// <summary>
        /// 分享记录
        /// </summary>
        [ExNoModify]
        [ExLanguageKey("SysShareRecord")]
        public SysShareRecordExPart SysShareRecord { get; set; }
    }
}
